Skip to content

Conversation

@jasnell
Copy link
Contributor

@jasnell jasnell commented Sep 20, 2024

Summary

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

Copy link
Contributor

@hyperlint-ai hyperlint-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 files reviewed, 3 outstanding issue(s) found.

Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
Copy link
Contributor

@irvinebroque irvinebroque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ so that we can ship, can always revisit and improve

export default {
async fetch(request, env, ctx) {
if (this.resp === undefined) {
globalThis.resp = await fetch('https://example.com');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

easier to understand by setting a global variable outside of the fetch handler? Since that is from what I've seen also the more common footgun, and illustrates the point of — don't do things in global scope outside of the handler!

@ToriLindsay ToriLindsay marked this pull request as draft November 7, 2024 11:35
@ToriLindsay
Copy link
Contributor

Confirmed with @jasnell over chat to switch this to draft for now

@kodster28
Copy link
Collaborator

Howdy @jasnell, from looking at the current Errors page, it seems like most of this information has been already incorporated into the page.

Going to close out this PR then, but feel free to re-open if it's in error (and let me know!).

@kodster28 kodster28 closed this May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants